package com.bdqn.sz.aopjdk;
import java.lang.reflect.Proxy;
public class AopjdkFactory {
    public static <T> T create(Object target) {
        AopjdkLogg handler = new AopjdkLogg();
        handler.setTarget(target);
        return (T) Proxy.newProxyInstance(target.getClass().getClassLoader(), target.getClass().getInterfaces(), handler);
    }
}
